<%@ page import="java.util.Map" %>
<%@ page import="net.amsoft.iservice.isso.webapp.dataObject.IBrokerData" %>
<%@ page import="net.amsoft.iservice.isso.util.ISSOConstants" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>

<SCRIPT LANGUAGE="JavaScript">
	<!--
	function changeBackground(id,image,change)
	{
		if(change) {
			id.className="cell-mouseover";
			document.getElementById(id).style.backgroundImage ='url(' + "<%=imagePath%>/left-menu-middle-grey.gif" + ')';
		}
		else {
			id.className ="white-smalltext";
			document.getElementById(id).style.backgroundImage ='url(' +'<%=imagePath%>/' + image +')';
		}
	}
	//-->
	</SCRIPT>


<tr>
	<td height=120><img src="<%=imagePath%>/ibroker-logo.gif?<%=dt.getTime()%>" height=120 width=121 /></td>
	<td height=120 width=605 colspan=2>
		<img border="0" src="<%=((IBrokerData)session.getAttribute(ISSOConstants.SESSION_IBROKER_OBJ)).getBannerLink()%>?<%=dt.getTime()%>" height=120 width=605  /> 
	</td>
</tr>
<tr>	
	<td valign="top">
		<table border=0 cellspacing=0 cellpadding=0 width=100%>
			<tr>
				<td id="td0" height="20px" background="<%=imagePath%>/left-menu-top.gif" ></td>
			</tr>
			<% Map linkMap=((IBrokerData)session.getAttribute(ISSOConstants.SESSION_IBROKER_OBJ)).getIBrokerMap();
			   int leftLinkCount=linkMap.size()/2;
			   int currentIndex = 1;
			   for (; currentIndex <= leftLinkCount; currentIndex++) {
               String sLinkText = (String) linkMap.get("link" + currentIndex + "_text");
               String sLinkUrl= (String) linkMap.get("link" + currentIndex + "_url");
             %><tr>
					<td id="td<%=currentIndex%>" background="<%=imagePath%>/left-menu-middle.gif"
						height="32px" class="white-smalltext"
						onmouseover="changeBackground('td<%=currentIndex%>','',true);" onmouseout="changeBackground('td<%=currentIndex%>','left-menu-middle.gif',false);">
						&nbsp;&nbsp;
						<a class="link-nounderline white-smalltext" href="<%=sLinkUrl%>">
							<%=sLinkText%>
						</a>
					</td>
				</tr>
			  <%
                }
				for (; currentIndex <= 8; currentIndex++)
	  			{
			  %>
					<tr><td id="td<%=currentIndex%>" background="<%=imagePath%>/left-menu-middle-blank.gif" height="32px"> </td> </tr> 
			  <%
				}
              %>
			<tr>
				<td><img src="<%=imagePath%>/left-menu-bottom.gif" /></td>
			</tr>
		</table>
	</td>
